package Classwork;

import java.util.Scanner;

public class Test03 {
    public static void main(String[] args) {
        Scanner reader=new Scanner(System.in);
        System.out.println("请输入一个整数：");
        int num=reader.nextInt();
        int y=0;
        int z=num;
        if (num<0){
            System.out.println(false);
            return;
        }
        while (num!=0){
            int x=num%10;
            y=x+y*10;
            num/=10;
        }
        if (y==z){
            System.out.println(true);
        }else {
            System.out.println(false);
        }
     }
}
